-- GENERATED SPELL FOR [Night Elf Archer] --


function spell0_17943(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(32103,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17943', 581, 1)
end

function Sorts_17943(pUnit, Event)
local choix_sorts_17943 = math.random(0, 0)
if choix_sorts_17943 == 0 then
pUnit:RegisterEvent('spell0_17943', 1, 1)
end
end

function mob17943_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17943', math.random(1500, 3000), 1)
end

function mob17943_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17943_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17943_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17943, 1, 'mob17943_Action')
RegisterUnitEvent(17943, 2, 'mob17943_Leave')
RegisterUnitEvent(17943, 3, 'mob17943_Kill')
RegisterUnitEvent(17943, 4, 'mob17943_Die')
